package src.com.atguigu02.singleton;

/**
 * ClassName: BankTest
 * Package: src.com.atguigu02.singleton
 * Description:
 *
 * @Author BuTang
 * @Create 2023/3/9 21:15
 * @Version 1.0
 */
public class BankTest {
    public static void main(String[] args) {

        Bank b = Bank.get();
        System.out.println(b);
        Bank a = Bank.get();
        System.out.println(a==b);
    }


}

class Bank{
    int name ;
    private Bank(){

    }
//    public Bank(int name){
//
//    }
    public static  Bank b1 = new Bank();
    public static Bank get(){
        return b1;
    }
}
